home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / p / pov / povlisti.ngs / mountb.pov < prev    next >
Encoding:
Text File  |  1992-09-07  |  4.4 KB  |  200 lines

  1. // Persistence of Vision Raytracer
  2. // Mount Barnsley by Paul Cotterill
  3. // Main height field derived from a Barnsleym3 fractal
  4. // For convenience foreground height field uses a gif that came with POV v1.0
  5. // The birds are meant to be looked at from a distance and at an angle,
  6. // close-up they are revealed as crude wooden models.
  7.  
  8.  
  9. #include "shapes.inc"
  10. #include "colors.inc"
  11. #include "textures.inc"
  12. #include "shapesq.inc"
  13. #include "bird1.inc"
  14. #include "mywall.inc"
  15.  
  16.  
  17.  
  18. #declare ScaleX = 1.0    
  19. #declare ScaleZ = 1.0      
  20.  
  21. camera {
  22.    location <-150.0 250.0  -750.0>
  23.    direction <0.0  0.0  2.25> 
  24.    up <0.0  1.0  0.0>        
  25.    right <1.333333 0.0 0.0>
  26.    look_at <-40.0 50.0  -10.0>
  27. }
  28.  
  29.  
  30. #declare MainLight = color red 0.75 green 0.75 blue 0.75
  31. #declare FillLight = color red 0.23 green 0.23 blue 0.25
  32. // Light source (main)
  33. object { light_source { <-500.0  300.0  -340.0> color MainLight } }
  34. object { light_source { <-50.0  300.0  -340.0> color FillLight } }
  35.  
  36.  
  37.  
  38. object {
  39.    height_field  {
  40.      
  41.       gif "mount2.gif"
  42.       scale <640 256 480>
  43.       water_level 0.0
  44.    }
  45. // A pink-tinged cloud texture for the mountains.
  46.    texture {
  47.     bozo
  48.     turbulence 0.5
  49.     color_map {
  50.     [0.0 0.1 color red 0.8 green 0.7 blue 0.7
  51.     color red 0.8 green 0.7 blue 0.7]
  52.     [0.1 0.5 color red 0.8 green 0.7 blue 0.7
  53.     color red 1.0 green 0.9 blue 0.9]
  54.     [0.5 1.0 color red 1.0 green 0.9 blue 0.9 
  55.     color red 1.0 green 1.0 blue 1.0 ]
  56.     }
  57.       
  58.    }
  59.    scale <ScaleX 0.5 ScaleZ> // Reduce the height, scale to 360 x 480 
  60.    translate <-340 0.0 -240>  // Center the image by half of ScaleX and ScaleZ
  61.     rotate < 0 15 0>
  62.    color Brown
  63.  
  64. }
  65.  
  66. object {
  67.    height_field  {
  68.      
  69.       gif "fract003.gif"
  70.       scale <320 256 200>
  71.       water_level 1.0
  72.    }
  73.  
  74. texture {
  75.     bozo
  76.     turbulence 0.5
  77.     color_map {
  78.     [0.0 0.1 color red 0.8 green 0.7 blue 0.7
  79.     color red 0.8 green 0.7 blue 0.7]
  80.     [0.1 0.5 color red 0.8 green 0.7 blue 0.7
  81.     color red 1.0 green 0.9 blue 0.9]
  82.     [0.5 1.0 color red 1.0 green 0.9 blue 0.9 
  83.     color red 1.0 green 1.0 blue 1.0 ]
  84.     }
  85.       
  86.    }
  87.   texture {
  88.     bozo
  89.     turbulence 0.5
  90.     
  91.     color_map {
  92.     [0.0 0.1 color red 0.6 green 0.7 blue 0.9
  93.     color red 0.2 green 0.7 blue 0.8]
  94.     [0.1 0.5 color red 0.2 green 0.7 blue 0.8
  95.     color red 0.1 green 0.7 blue 0.5]
  96.     [0.5 1.0 color red 0.1 green 0.7 blue 0.5 alpha 0.5
  97.     color red 0.1 green 0.6 blue 0.3 alpha 1.0]
  98.     }
  99.       
  100.    }
  101.  
  102.  
  103.    scale <1.3 0.4 1.3> 
  104.    translate <-300 10.0 -440>  
  105.    rotate < 0 5 0>
  106.    color Brown
  107.  
  108. }
  109.  
  110.  
  111.  
  112. // Sky sphere 
  113. object {
  114.    sphere { <0.0  0.0  0.0> 2000.0 }
  115.    color SummerSky
  116.    texture {
  117.       gradient <0 1 0> 
  118.       color_map {
  119.          [0.00 0.15 color red 0.75 green 0.85 blue 0.95 color red 0.1 green 0.7 blue 0.9] 
  120.          [0.15 0.45 color red 0.1 green 0.7 blue 0.9 color red 0.1 green 0.6 blue 0.85]    
  121.          [0.45 0.87 color red 0.1 green 0.6 blue 0.85   color red 0.1 green 0.5 blue 0.75 ] 
  122.          [0.87 1.01 color red 0.1 green 0.5 blue 0.75  color red 0.1 green 0.3 blue 0.5 ] 
  123.       }
  124.       scale <1000 1000 1000>      // Big enough to surround the universe
  125.       translate <0.0 -240.0 0.0>  // This ajusts for the viewer position 
  126.       ambient 1.0                 // Keep objects from casting shadows 
  127.       diffuse 0.0                 // All light comes from ambient sources 
  128.    }
  129. }
  130. // Cloud sphere
  131. object {
  132.    sphere { <0.0  0.0  0.0> 1800.0 }
  133.  
  134.  
  135.    texture {
  136.          turbulence .5
  137.          bozo
  138.          color_map {
  139.            // transparent to transparent 
  140.            [ 0 .6  color red 1 green 1 blue 1 alpha 1  
  141.        
  142.        
  143.                    color red 1 green 1 blue 1 alpha 1]
  144.            // transparent to white 
  145.            [.6 .8  color red 1 green 1 blue 1 alpha 1  
  146.                    color red 1 green 1 blue 1]
  147.            // white to grey 
  148.            [.8 1  color red 1 green 1 blue 1
  149.                   color red 0.8 green 0.8 blue 0.8]
  150.            }
  151.        scale <250  88  450>
  152.        }
  153.        
  154. }
  155.  
  156.  
  157. composite {
  158.     bird
  159.     rotate <45 0 0>
  160.     rotate <0 0 30>
  161.     scale <6 6 6>
  162.     translate <-5 130 120>
  163.     
  164.     }
  165.  
  166. composite {
  167.     bird
  168.     rotate <20 0 0>
  169.     rotate <0 0 -20>
  170.     scale <6 6 6>
  171.     translate <-20 155 150>
  172.     
  173.     }
  174.  
  175. composite {
  176.     bird
  177.     rotate <35 0 0>
  178.     rotate <0 0 20>
  179.     scale <6 6 6>
  180.     translate <-55 170 180>
  181.     
  182.     }
  183.  
  184.  
  185.  
  186. object {
  187.     Thewall
  188.     scale <2.5 2.5 2.5>
  189.     translate <-54 78 -418>
  190.     rotate <0 20 0>
  191.     }
  192.  
  193. object {
  194.     rock
  195.     rotate <0 -18 0>
  196.     scale <3.5 3.5 3.5>
  197.     translate <-68 110 -478>
  198.     
  199.     
  200. }